<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_CSS常用词</title>
    <style>
        h1 {
            color: red;
            /*rgb(red,green,blue) 范围0-255*/
            color: rgb(255, 0, 0);
            color: rgb(0, 255, 255);
            color: rgb(0, 255, 0);
            color: rgb(255, 0, 255);
            color: rgb(0, 0, 255);
            color: rgb(255, 255, 0);
            color: rgb(255, 255, 255);
            color: rgb(0, 0, 0);
            /*十六进制颜色表示法 范围00-ff*/
            color: #FF0000;
            color: #00ff00;
            color: #0000ff;
            color: #fff; /*ff缩写f，两个相同的可以缩写成一个*/
            color: #000;
            color: #808080;
            color: #f01f;
            color: #557;
            color: #901f;
            /*带不透明度的颜色*/
            color: rgba(255, 0, 0, 0.1);
            color: rgba(255, 0, 0, .2);
            color: rgba(255, 0, 0, .5);
            color: rgba(255, 0, 0, 0.8);
            color: rgba(255, 0, 0, 1);
        }

        .d1 {
            width: 500px;
            height: 500px;
            /*渐变色：角度值(单位deg)*/
            background-image: linear-gradient(348deg, #ddeac0, rgba(228, 202, 190, 0.58), #d1da9b, #a2cce6);
        }

        .d2 {
            width: 50px;
            height: 100px;
            background: #000;
            background-image: url(img/mr.png);
            background-size: 100% 100%;
        }

        .d3 {
            width: 500px;
            height: 300px;
            border: 5px solid red;
            background-image: url(img/mr.png);
            background-repeat: no-repeat;
            background-position: 50px 0;
            background-position: 0 100px;
            background-position: -10px -50px;
            background-position: left top;
            background-position: center;
            background-position: bottom;
            background-position: 50% 50%;

        }

    </style>
</head>
<body>
<h1>测试颜色</h1>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
</body>
</html>